function updateTime() {
    var date = new Date();
    let year = date.getFullYear();
    let month = date.getMonth() + 1;
    month = (month < 10) ? ('0' + month) : month;
    let day = date.getDate();
    day = (day < 10) ? ('0' + day) : day;
    let yearData = year + '.' + month + '.' + day;
    let hours = date.getHours();
    hours = (hours < 10) ? ('0' + hours) : hours;
    let minutes = date.getMinutes();
    minutes = (minutes < 10) ? ('0' + minutes) : minutes;
    let seconds = date.getSeconds();
    seconds = (seconds < 10) ? ('0' + seconds) : seconds;
    let timeData = hours + ':' + minutes + ':' + seconds;
    return yearData + " " + timeData;
}